/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2022-11-16
 * Time: 17:28
 */
public class RecurPrintNum {
    public static void printNum(int n) {
        if (n > 9) {
            printNum(n / 10);
        }
        System.out.print(n % 10 + " ");
    }
    public static void main(String[] args) {
        int n = 1234;
        printNum(n);
    }
}
